package cool.xinya.ess.security;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;

/**
 * redis缓存Manager
 *
 * @author wangxiaolong
 * @date 2019/6/27.
 */
public class RedisCacheManager implements CacheManager {
    private final Cache cache;

    public RedisCacheManager(Cache cache) {
        this.cache = cache;
    }

    @Override
    public <K, V> Cache<K, V> getCache(String name) throws CacheException {
        return cache;
    }


}
